package com.my.test.service.student.dao.impl;

import com.my.test.service.student.dao.StudentDao;
import com.my.test.service.student.model.Student;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository("studentDao")
public class StudentDaoImpl extends SqlSessionDaoSupport implements StudentDao {

    @Override
    public List<Student> findAllStudent() {
        return getSqlSession().selectList("Student.getStudents");
    }
}